[#ftl]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>公司详情</title> 
<script type="text/javascript" src="${base}/commonjs/jquery.upload.js" charset="utf-8"></script>
<script type="text/javascript">
var filePath2="${base}";
var actionUrl="/uyo/platUploadfile/storeFileAdd";
</script>
<script type="text/javascript" src="${base}/commonjs/ueditor/ueditor.config.js"></script> 
<script type="text/javascript" src="${base}/commonjs/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript" src="${base}/commonjs/ueditor/lang/zh-cn/zh-cn.js"></script>
<css>
    <style type="text/css">
        .editor { width: 780px; height: 510px; float: left; }
    </style>
    <style>
    .mainImage{border-color:#393;border-style: solid solid solid solid;border-width: 3px !important;}
    .error {color: Red; font-size: 13px; margin-left: 5px; padding-left: 16px;}
    </style>
</css>
<script type="text/javascript">
    var editor = UE.getEditor('myEditor', {
        initialFrameWidth: 780,
        initialFrameHeight: 360,
        scaleEnabled:true
    });
    editor.ready(function () {
        editor.setDisabled();
    });

  $(function() {
       $("#butCancel").click(function(){
            window.history.go(-1);            
       });     
  });
  
function setContact()
{  
    if($("#eva_tab2").children().length==0){   
        $.ajax({
            type: "POST", //提交的类型 
            url:  "${base}/uyo/platStoreContact/contactInfo",//提交地址 
            data: $("#dataform").serializeArray(),//参数 
            //contentType: "application/json; charset=utf-8", 
            success: function(msg){//回调方法 
                        $("#eva_tab2").html(msg);
                    }
        });  
   } 
}

//点击图片放大两倍，已弃用
$(function(){
    $("img1").click(function(){
        var width = $(this).width();
        var height = $(this).height();
        if(width>150||height>150)
        {
            $(this).width(width/2);
            $(this).height(height/2);
        }
        else
        {
            $(this).width(width*2);
            $(this).height(height*2);
        }
    });
});
</script>
</head>
<body>
    <form id="dataform" action="#" method="POST">
        <input type="hidden" name="categoryId" id="categoryId" value="${(bean.categoryId)!0}">
        <input type="hidden" name="status" id="status" value="${(bean.status)!1}">
        <input type="hidden" name="id" id="id" value="${(bean.id)!1}">
     [#--   <input type="hidden" name="page" id="nowpager" value="${page!1}"> --]
     
        <div class="right_top"><span class="pl20 f14">企业信息详情</span></div>
        <div class="eva_content_top mt10" >
            <ul id="eva_all">
                <li><a tab="eva_tab1" class="eva_focus" href="javascript:void(0);">基本信息</a></li>
                <li><a tab="eva_tab2" class="white" href="javascript:void(0);" onclick="setContact();">联系方式</a></li>
            </ul>
        </div>
        <div id='eva_tab1' class="commerce_1 pb10 ml10 mt10 eva_tab">
            <table id="add_table" class="main_table" >
               <tr>
                  <td class="tr w150">名称：</td>
                  <td class="pl10">${(bean.name)!''}</td>
               </tr>
                <tr>
                  <td class="tr w150">类别：</td>
                  <td class="pl10">${(bean.categoryName)!''}</td>
               </tr>
               <tr>
                  <td class="tr w150">类型：</td>
                  <td class="pl10">[#if bean.type=0] 公司[/#if]
                                   [#if bean.type=1] 店铺[/#if]
                  </td>
               </tr>
               <tr>
                   <td class="tr w150">状态：</td>
                   <td class="pl10">[#if (bean.status)?exists && (bean.status)==1]开启[/#if]
                                    [#if (bean.status)?exists && (bean.status)==0]关闭[/#if]
                                    [#if (bean.status)?exists && (bean.status)==2]审核中[/#if]
                   </td>
               </tr>
               <tr>
                  <td class="tr w150" style="vertical-align:top">LOGO：</td>
                  <td class="pl10">             
                     <div class="mt10">
                        <ul id="logoPicPreview" class="grid" style="width:170px;">
                            <li class='fl ml10 image-div' data-name=''>
                               <a href='${base}/${(bean.logoUrl)!}' target='_black'>
                               <img class='pb5'  src='${base}/${(bean.logoUrl)!}' style='width:150px;height:150px;'></a>
                            </li>
                        </ul>
                    </div>
                 </td>
               </tr>
               <tr>
                  <td class="tr w150">简介：</td>
                  <td class="pl10">${(bean.description)!''}</td>
               </tr>
               <tr>
                  <td class="tr w150" style="vertical-align:top">介绍图片：</td>
                  <td class="pl10">            
                     <div class="mt10">
                        <ul id="imglist" class="grid">
                        [#if images??]
                         [#list images as item]
                            <li class='fl ml10' data-name='${item.url}'>
                                   <div class='image-div'><a href='${base}/${(item.url)!}' target='_black'>
                                                <img [#if bean.bannerId==item.id] class='mainImage' [/#if] src='${base}/${(item.url)!}'  style='width:150px;height:150px;'></a></div>
                            </li>
                         [/#list]
                       [/#if]
                        </ul>
                     </div>
                  </td>
               </tr>
               <tr style="height:550px" >         
                  <td class="tr pt10  w150" style="vertical-align:top">详细介绍</td>
                  <td class="vt pt10 pl10"><textarea style="display:none"  id="content" name="content"></textarea>
                      <div class="editor">    
                           <script type="text/plain" id="myEditor">${(bean.content)!''}</script>     
                           <script type="text/plain" id="upload_ue"></script>
                      </div>
                  </td> 
               </tr>
               <tr>
                  <td class="tr w150">地址：</td><td class="pl10">${(thisCountry.name)!''}-${(thisRegion.name)!''}-${(thisCity.name)!''}-${(thisDistinct.name)!''}-${(bean.address)!''}</td>
               </tr>
               <tr>   
                  <td class="tr w150 mt10" style="vertical-align:top">附件：</td>
                  <td class="pl10">
                      <ul id="filelist" class="grid">
                      [#if files??]
                       [#list files as item]
                        <li>
                            <a href="${base}/${(item.url)!}" target="_black">${(item.originalName)!''}</a>
                        </li>
                    [/#list]
                    [/#if]
                      </ul>                      
                  </td>
               </tr>
            </table>
           <div class="pro-btn pt30">
              <div class="tc" colspan="2">
                    <input class="btn_1 ml15" id="butCancel" type="button" value="返回">
              </div>
           </div>
      </div>
      <div id='eva_tab2' class="commerce_1 pb10 ml10 mt10 eva_tab"> 
      </div>     
    </form>
</body>
</html>